﻿@model IEnumerable<Repository.Contracts.LinhVucClass>

@{
    ViewBag.Title = "Index";
    Layout = "~/Views/Shared/AdminLayout.cshtml";
}
<style>
    .title
    {
        color:Green;
        font-size:large;
    }
    .link_menu
    {
        text-decoration:none;
        font-size:large;
        color:Blue;
    }
    .link_menu:visited
    {
        text-decoration:none;
        font-size:large;
        color:Blue;
    }
    .div_panel
    {
        padding:5px;
        background-color:White;
    }
    .div_panel:hover
    {
        padding:5px;
        background-color:Olive;
    }
</style>
<div class="title">Lĩnh Vực Tư Vấn</div>
<div>
@foreach (var item in Model)
{
    if (item.Loai == 1)
    {
        <div class="div_panel">@Html.ActionLink(item.TenLinhVuc,"ChiTietLinhVuc",new {malv=item.MaLinhVuc}, new{ @class="link_menu"})</div>
    }
}
</div>
<div class="title">Lĩnh Vực Tố Tụng</div>
<div>
@foreach (var item in Model)
{
    if (item.Loai == 2)
    {
        <div class="div_panel">@Html.ActionLink(item.TenLinhVuc, "ChiTietLinhVuc", new { malv = item.MaLinhVuc }, new { @class = "link_menu" })</div>
    }
}
</div>
<div class="title">Nghiên Cứu - Trao Đổi</div>
<div>
@foreach (var item in Model)
{
    if (item.Loai == 2)
    {
        <div class="div_panel">@Html.ActionLink(item.TenLinhVuc, "ChiTietLinhVuc", new { malv = item.MaLinhVuc }, new { @class = "link_menu" })</div>
    }
}
</div>